<!DOCTYPE html>
<#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
<#assign fillDept=JspTaglibs["http://www.casic304.cn/fillDept"] />
<#assign dicSelect = JspTaglibs["http://www.casic304.cn/dicSelect"]/>
<#assign DutyDept = JspTaglibs["http://www.casic304.cn/DutyDept"]/>
<html>
<head>
    <meta charset="utf-8">
    <title>型号质量问题督办</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>

</head>
<body class="listBody qbdms-particulars">
<div class="qbdms-bodyDiv">
    <div class="qbdms-backDiv">
        <div class="layui-table-view-body" style="padding: 0 24px 24px;">
            <div class="qbdms-formTitle" style="border-bottom: 1px solid #E5F0FF">型号质量问题督办 <i class="qbdms-returnOn closeWindow">返回</i></div>
            <form class="layui-form treeFormPreview" requrl="${ctx}/qbdms/wQbdFalSupervise/get" lay-filter="wQbdFalSuperviseDataForm">
                    <div class="" style="width: 100%;overflow-x: auto">
                        <table class="tableExcel qbdms-zeroTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tbody>
                            <tr id="tbxx"></tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">型号代号<span style="color: red;">*</span></td>
                                <td colspan="5" name="fModelsymbol"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">型号名称<span style="color: red;">*</span></td>
                                <td colspan="5" name="fModelname"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">问题责任单位<span style="color: red;">*</span></td>
                                <td colspan="5" name="fDutydept"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">问题现象<span style="color: red;">*</span></td>
                                <td colspan="5" name="fFailuredescription"></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                    <input type="hidden" name="id" placeholder="请输入"
                           autocomplete="off" class="layui-input " maxlength="50" fieldname="id">
                    <input type="hidden" name="fDutydeptId" placeholder="请输入问题责任单位id"
                           autocomplete="off" class="layui-input " maxlength="50" fieldname="fDutydeptId">
                    <input type="hidden" name="fIfsupervise" placeholder="请输入"
                           autocomplete="off" class="layui-input " maxlength="50" fieldname="fIfsupervise">
                    <input type="hidden" name="fProblemid" placeholder="请输入质量问题id"
                           autocomplete="off" class="layui-input " maxlength="50" fieldname="fProblemid">
                    <input type="hidden" name="fIsGroupdown" placeholder="请输入">
                <#if isClose != 'true'>
                <div class="layui-form-item btnformItem">
                    <p>
                        <button type="reset" id="closeWindow" class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">返回</button>
                    </p>
                </div>
            </#if>
            </form>
        </div>
    </div>
</div>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','setter', 'propsHandle', 'laydate', 'jquery','commonDialog', 'common','publicMethods','qbdmsForm'], function () {

        // -----常量声明----------
        var $ = layui.jquery,
            laydate = layui.laydate,
            setter = layui.setter,  // 配置信息
            layer = layui.layer,
            publicMethods = layui.publicMethods,
            propsHandle = layui.propsHandle,
            form = layui.qbdmsForm;

        var dateTimeFiledLen = $(".dateTimeFiled");
        for (var i = 0; i < dateTimeFiledLen.length; i++) {
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                , type: 'date'
                , trigger: 'click'
            });
        }

        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdFalSupervise/view/list';
        });

        var common = layui.common;
        var index = parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name: 'wQbdFalSuperviseDataForm',
            idValue: "${id}",
            primary: "id",
            getCallback: function (data) {
                $("#tbxx").html("<td class='qbdms-zeroTable-lable'>填报信息:</td><td colspan='5' class=''>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</td>");
            }
        });
        $("body *").not("#closeWindow").attr("disabled", "disabled");
        publicMethods.bottomFixd()

    });
</script>
</body>
</html>